const mongoose = require('mongoose');
const Schema = mongoose.Schema;
const usersSchema = new Schema({
    user_name:{
        type:String,
        unique:true,
        require:true
    },
    password:{
        type:String,
        unique:false,
        require:true
    }
})
const Users = mongoose.model('users',usersSchema);//参数一：数据库中的集合的名称 参数二：该集合对应的约束条件是什么
module.exports = Users;
